package com.weblog.manager;

import javax.annotation.Resource;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;

import com.weblog.config.RedisCache;

/**
 * @author: zhangHaiWen
 * @date : 2018/7/20 0020 下午 4:17
 * @DESC : 创建自定义的CustomCache
 */
public class CustomCacheManager implements CacheManager {

	@Resource
	private RedisCache redisCache;

	@Override
	public <K, V> Cache<K, V> getCache(String arg0) throws CacheException {
		return redisCache;
	}

}
